cmake_minimum_required(VERSION 3.10)

#执行的文件
add_executable(linux-uart-test linux-uart/linux-uart-test.cpp)
#包含的头文件
target_include_directories(linux-uart-test PUBLIC ${CMAKE_SOURCE_DIR}/src/linux-uart)
#包含的链接文件
target_link_libraries(linux-uart-test smart_dev)


#=================================
add_executable(fingerprint-protocol-test fingerprint/fingerprint-protocol-test.cpp)
target_include_directories(fingerprint-protocol-test PUBLIC ${CMAKE_SOURCE_DIR}/src/fingerprint)
target_link_libraries(fingerprint-protocol-test smart_dev)

add_executable(fingerprint-device-test fingerprint/fingerprint-device-test.cpp)
target_include_directories(fingerprint-device-test PUBLIC ${CMAKE_SOURCE_DIR}/src/fingerprint)
target_link_libraries(fingerprint-device-test smart_dev)

add_executable(fingerprint-manager-test fingerprint/fingerprint-manager-test.cpp)
target_include_directories(fingerprint-manager-test PUBLIC ${CMAKE_SOURCE_DIR}/src/fingerprint)
target_link_libraries(fingerprint-manager-test smart_dev)


add_executable(linux-alsa-sound-test asound/linux-alsa-sound-test.cpp)
target_include_directories(linux-alsa-sound-test PUBLIC ${CMAKE_SOURCE_DIR}/src/asound)
target_link_libraries(linux-alsa-sound-test smart_dev)

add_executable(ai-speech-recognition-test ai-speech-recognition/ai-speech-recognition-test.cpp)
target_include_directories(ai-speech-recognition-test PUBLIC ${CMAKE_SOURCE_DIR}/src/ai-speech-recognition)
target_link_libraries(ai-speech-recognition-test smart_dev)

add_executable(smart-device-protocol-test smart-device/smart-device-protocol-test.cpp)
target_include_directories(smart-device-protocol-test PUBLIC ${CMAKE_SOURCE_DIR}/src/smart-device)
target_link_libraries(smart-device-protocol-test smart_dev)

add_executable(smart-device-manager-test smart-device/smart-device-manager-test.cpp)
target_include_directories(smart-device-manager-test PUBLIC ${CMAKE_SOURCE_DIR}/src/smart-device)
target_link_libraries(smart-device-manager-test smart_dev)

add_executable(smart-device-net-protocol-test smart-device-net/smart-device-net-protocol-test.cpp)
target_include_directories(smart-device-net-protocol-test PUBLIC ${CMAKE_SOURCE_DIR}/src/smart-device-net)
target_link_libraries(smart-device-net-protocol-test smart_dev)

add_executable(smart-device-gateway-test smart-device-gateway/smart-device-gateway-test.cpp)
target_include_directories(smart-device-gateway-test PUBLIC ${CMAKE_SOURCE_DIR}/src/smart-device-gateway)
target_link_libraries(smart-device-gateway-test smart_dev)